#include "stdafx.h"
#include "Tolerance.h"
#include "GeomUtils.h"

using namespace stl;

CTol::CTol()
{
	m_ptTol.x = g_dDrawingTol;
	m_ptTol.y = g_dDrawingTol;
	m_ptTol.z = g_dDrawingTol;
	m_vecTol.x = g_dDrawingTol;
	m_vecTol.y = g_dDrawingTol;
	m_vecTol.z = g_dDrawingTol;
}

CTol::~CTol()
{
}

void CTol::SetEqualPonit(const CPoint3D & tol)
{
	m_ptTol.x = tol.x;
	m_ptTol.y = tol.y;
	m_ptTol.z = tol.z;
}

void CTol::setEqualVector(const CVector3D & tol)
{
	m_vecTol.x = tol.x;
	m_vecTol.y = tol.y;
	m_vecTol.z = tol.z;
}

double CTol::TolPtX() const
{
	return m_ptTol.x;
}

double CTol::TolPtY() const
{
	return m_ptTol.y;
}

double CTol::TolPtZ() const
{
	return m_ptTol.z;
}


double CTol::TolVecX() const
{
	return m_vecTol.x;
}

double CTol::TolVecY() const
{
	return m_vecTol.y;
}

double CTol::TolVecZ() const
{
	return m_vecTol.z;
}